package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysBoatBattery;
import com.ruoyi.system.service.SysBoatBatteryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: zhangzhe
 * @Date: 2023/12/4
 */
@Api(tags = "电池模块")
@RestController
@RequestMapping("battery")
public class SysBoatBatteryController {

    @Resource
    SysBoatBatteryService sysBoatBatteryService;

    @ApiOperation("查询电池信息")
    @PostMapping("/getBoatBatteryList")
    public AjaxResult getBoatBatteryList(@RequestBody SysBoatBattery param) {
        return sysBoatBatteryService.getBoatBatteryList(param);
    }
}
